// UpdateTaskTimeDto.java
package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "更新任务时间请求参数")
public class UpdateTaskTimeDto {

    @NotNull(message = "护理任务ID不能为空")
    @ApiModelProperty(value = "护理任务ID", required = true)
    private Long taskId;

    @NotNull(message = "执行时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "执行时间", required = true)
    private LocalDateTime estimatedServerTime;
}
